package com.lz.gamll.feign.product.fallBack;

import com.lz.gamll.feign.product.CategoryFeignClient;
import com.lz.gmall.common.result.Result;
import com.lz.gmall.product.vo.CategoryVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
public class CategoryFeignClientFallBack implements CategoryFeignClient {
    @Override
    public Result<List<CategoryVo>> findAllCategory() {
        log.error("CategoryFeignClientFallBack兜底方案执行了。。。。。。。。");
        return Result.ok();
    }
}
